package com.mdb.open.trade.domain.po.product;

import com.baomidou.mybatisplus.annotation.*;
import com.mdb.bc.api.data.DataObjectBase;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
* 类描述：
*  额度调整记录表实体类
*
* @author liuyi
* @date 2019-07-26
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("limit_change_rec")
public class LimitChangeRec extends DataObjectBase {

    private static final long serialVersionUID = 1L;
    /**
    * 主键ID
    */
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 额度编号
    */
    @ApiModelProperty(value = "额度编号")
    @TableField("limit_no")
    private String limitNo;

    /**
    * 调整时间
    */
    @ApiModelProperty(value = "调整时间")
    @TableField("change_time")
    private LocalDateTime changeTime;

    /**
    * 总额度
    */
    @ApiModelProperty(value = "总额度")
    @TableField("last_total_bal")
    private BigDecimal lastTotalBal;

    /**
    * 总额度
    */
    @ApiModelProperty(value = "总额度")
    @TableField("new_total_bal")
    private BigDecimal newTotalBal;

    /**
    * 变更原因
    */
    @ApiModelProperty(value = "变更原因")
    private String remark;

    /**
    * 创建者ID
    */
    @ApiModelProperty(value = "创建者ID")
    @TableField(value = "create_user_id", insertStrategy = FieldStrategy.NOT_NULL)
    private String createUserId;

    /**
    * 创建者
    */
    @ApiModelProperty(value = "创建者")
    @TableField(value = "create_user_name", insertStrategy = FieldStrategy.NOT_NULL)
    private String createUserName;

    /**
    * 变更人ID
    */
    @ApiModelProperty(value = "变更人ID")
    @TableField("opt_user_id")
    private String optUserId;

    /**
    * 变更人name
    */
    @ApiModelProperty(value = "变更人name")
    @TableField("opt_user_name")
    private String optUserName;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
    * 修改时间
    */
    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
